home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000160_news@newsmaster….columbia.edu _Sat May 30 03:25:44 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id DAA16866
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 30 May 1998 03:25:29 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id DAA17635
  7.     for kermit.misc@watsun; Sat, 30 May 1998 03:25:28 -0400 (EDT)
  8. Newsgroups: comp.protocols.kermit.misc
  9. Path: news.columbia.edu!panix!news.eecs.umich.edu!news-feed.inet.tele.dk!bofh.vszbr.cz!cpk-news-hub1.bbnplanet.com!cam-news-feed1.bbnplanet.com!news.bbnplanet.com!news-in.ConnActivity.com!fcshome!fredex
  10. From: fredex@fcshome.stoneham.ma.us (Fred Smith)
  11. Subject: Re: accesing modem for users other than root?
  12. X-Newsreader: TIN [version 1.2 PL2]
  13. Organization: None!
  14. Message-ID: <EtqwMI.759@fcshome.stoneham.ma.us>
  15. References: <6kmho4$6ic@portal.gmu.edu>
  16. Date: Sat, 30 May 1998 01:11:05 GMT
  17. Lines: 38
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8826
  19.  
  20. Ravi Malghan (rmalghan@site.gmu.edu) wrote:
  21. : Hi,
  22. : I am using the C-Kermit to sent pages over a connected modem. I am able
  23. : to send pages as a root. But when I try sending as any other user
  24. : I get the following message
  25.  
  26. : ===
  27. : mgtserver% ./page_ravi 18885005136 1 536
  28. : /var/spool/locks: Permission denied
  29. : Sorry, access to lock denied: /dev/ttya
  30. : ======
  31. : The permissions for the locks, term/a files are:
  32.  
  33. : drwxr-xr-x   2 uucp     uucp         512 May 29 10:28 locks
  34.  
  35. : lrwxrwxrwx   1 root     root           6 Feb 13 19:41 /dev/ttya -> term/a
  36.  
  37. : lrwxrwxrwx   1 root     root          47 Feb 13 19:41 /dev/term/a -> ../../de
  38. : vices/pci@1f,4000/ebus@1/se@14,400000:a
  39.  
  40. On most Unix systems the tty device to which the modem is attached will
  41. be owner/group uucp. In that case, you would set kermit to owner/group
  42. uucp AND set the setuid bit: "chmod u+s wermit"
  43.  
  44. HOwever, your tty port is owned by root, so you might think you would
  45. then set kermit to owner/group root and make it setuid. But if you try
  46. that you'll find that kermit won't work that way! It's a (security)
  47. feature!
  48.  
  49. Unless there is some overwhelming reason why the tty MUST be owned by
  50. root, I'd change it to uucp then do as suggested above.
  51.  
  52. Fred
  53. --
  54. ---- Fred Smith -- fredex@fcshome.stoneham.ma.us -----------------------------
  55.     "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of
  56.      heaven, but only he who does the will of my Father who is in heaven."
  57. ------------------------------ Matthew 7:21 (niv) -----------------------------